package com.eudon.design_pattern.creational.abstract_factory;

import com.eudon.design_pattern.creational.abstract_factory.memory.Memory;
import com.eudon.design_pattern.creational.abstract_factory.storage.Storage;

/**
 * @author eudon
 * @description 手机产品
 * @date 2025/9/1
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public record Phone(Storage storage, Memory memory) {
    @Override
    public String toString() {
        return "手机配置：{" +
                "储存空间=" + storage.getInfo() +
                ", 内存=" + memory.getInfo() +
                '}';
    }
}
